package com.bike.modules.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bike.modules.dto.OrderCommentDTO;
import com.bike.modules.dto.QueryDTO;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bike.modules.entity.OrderComment;
import com.bike.modules.dao.OrderCommentMapper;
import com.bike.modules.service.OrderCommentService;
@Service
public class OrderCommentServiceImpl extends ServiceImpl<OrderCommentMapper, OrderComment> implements OrderCommentService{

    @Override
    public IPage<OrderCommentDTO> selectPage(QueryDTO dto) {
        IPage<Object> page = new Page<>(dto.getCurrent(),dto.getSize());
        return this.baseMapper.selectPage(page,dto);
    }
}
